package o;

import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.huawei.updatesdk.service.otaupdate.UpdateStatusCode.DialogButton;
import java.lang.ref.WeakReference;

public class bef implements OnClickListener {
    private WeakReference<beh> ˏ;

    public bef(beh o_beh) {
        this.ˏ = new WeakReference(o_beh);
    }

    public void onClick(DialogInterface dialogInterface, int i) {
        beh o_beh = (beh) this.ˏ.get();
        if (o_beh != null) {
            int ʼ = o_beh.ʼ();
            bcb.ˋ.ˋ("DialogClickListener", "dialogStatus=" + ʼ);
            if (i != -1) {
                o_beh.ˋ(false);
                if (ʼ != 2) {
                    o_beh.ˋ("score/1");
                    o_beh.ʻ().ˏ(DialogButton.CONFIRM);
                } else if (o_beh.ˋ()) {
                    bcb.ˋ.ˋ("DialogClickListener", "Score changed");
                    o_beh.ˊ();
                } else {
                    o_beh.ˋ("score/3");
                    o_beh.ʻ().ˏ(102);
                }
            } else if (ʼ == 1) {
                o_beh.ˋ(true);
                o_beh.ˊ();
            } else if (ʼ == 2) {
                o_beh.ˎ();
            }
        }
    }
}
